<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!doctype html>
<html>

<head>
<meta charset="utf-8">
<script
	src="${pageContext.request.contextPath}/js/common/jquery-1.10.2.min.js"></script>
<script src="${pageContext.request.contextPath}/js/common/slider.js"></script>
<script src="${pageContext.request.contextPath}/js/common/index.js"></script>
<link href="${pageContext.request.contextPath}/css/common/index.css"
	rel="stylesheet">
<title>时尚轻纺城</title>
</head>

<body>
	<div class="login">
		<c:if test="${user_id==null }">
			<span><a href="${pageContext.request.contextPath}/user/deal_login.do">登陆</a></span>
			<span><a href="${pageContext.request.contextPath}/user/deal_register.do">注册</a></span>
		</c:if>
		<c:if test="${user_id!=null }">
			<span><a href='${pageContext.request.contextPath}/${user.role}/${user.role}.do?user_id=${user_id}'>${username }</a></span>
		</c:if>
	</div>
	<div class="container">
		<div class="head">
			<span>时尚轻纺城</span>
		</div>
		<!-- 轮播广告 -->
		<div id="banner_tabs" class="flexslider">
			<ul class="slides">
				<li><a title="" target="_blank" href="#"> <img width="1920"
						height="482" alt=""
						style="background: url(${pageContext.request.contextPath }/images/banner1.jpg) no-repeat center;"
						src="${pageContext.request.contextPath }/images/alpha.png">
				</a></li>
				<li><a title="" href="#"> <img width="1920" height="482"
						alt=""
						style="background: url(${pageContext.request.contextPath }/images/banner2.jpg) no-repeat center;"
						src="${pageContext.request.contextPath }/images/alpha.png">
				</a></li>
				<li><a title="" href="#"> <img width="1920" height="482"
						alt=""
						style="background: url(${pageContext.request.contextPath }/images/banner3.jpg) no-repeat center;"
						src="${pageContext.request.contextPath }/images/alpha.png">
				</a></li>
			</ul>
			<ul class="flex-direction-nav">
				<li><a class="flex-prev" href="javascript:;">Previous</a></li>
				<li><a class="flex-next" href="javascript:;">Next</a></li>
			</ul>
			<ol id="bannerCtrl" class="flex-control-nav flex-control-paging">
				<li><a>1</a></li>
				<li><a>2</a></li>
				<li><a>2</a></li>
			</ol>
		</div>
		<img src="images/index_clear.png" class="cleanpic">
		<div class="menus">
			<div class="clean"></div>
			<div class="menu1">
				<div class="menu">
					<a href="${pageContext.request.contextPath }/design/scan_design.do"> <img
						src="${pageContext.request.contextPath }/images/index_1.jpg">
						<div class="words">
							<span class="title" style="margin-left: 110px;">作品</span> <span
								class="num">${design_count}件</span>
						</div>
					</a>
				</div>
				<div class="menu">
					<a href="#"> <img
						src="${pageContext.request.contextPath }/images/index_2.jpg">
						<div class="words">
							<span class="title" style="margin-left: 60px;">品牌服装</span> <span
								class="num">${clothing_count}件</span>
						</div>
					</a>
				</div>
				<div class="menu">
					<a href="${pageContext.request.contextPath}/provider/providerInfo.do"> <img
						src="${pageContext.request.contextPath }/images/index_3.jpg">
						<div class="words">
							<span class="title" style="margin-left: 82px;">供应商</span> <span
								class="num">${enterprise_count}家</span>
						</div>
					</a>
				</div>
			</div>
			<div class="menu2">
				<div class="menu">
					<a href="${pageContext.request.contextPath }/designer/scan_designer.do"> <img
						src="${pageContext.request.contextPath }/images/index_4.jpg">
						<div class="words">
							<span class="title" style="margin-left: 82px;">设计师</span> <span
								class="num">${ designer_count}人</span>
						</div>
					</a>
				</div>
				<div class="menu">
					<a href="${pageContext.request.contextPath}/fabric/getFabricMain.do"> <img
						src="${pageContext.request.contextPath }/images/index_5.jpg">
						<div class="words">
							<span class="title" style="margin-left: 110px;">面料</span> <span
								class="num">${fabric_count }件</span>
						</div>
					</a>
				</div>
				<div class="menu">
					<a href="${pageContext.request.contextPath }/enterprise/scan_enterprise.do"> <img
						src="${pageContext.request.contextPath }/images/index_6.png">
						<div class="words">
							<span class="title" style="margin-left: 106px;">企业</span> <span
								class="num">${information_count}家</span>
						</div>
					</a>
				</div>
			</div>
		</div>
	</div>
</body>

</html>
